package com.wn.sk.product.core.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author yellow Docter
 * @date 2022 -09-02
 * @desc 查询活动的封装对象
 * <p>
 * VO (View Object)，用于表示一个与前端进行交互的视图对象，
 * DTO(Data Transfer Object)，用于表示一个数据传输对象
 * DO(Data Object) ，持久化对象，
 * BO（Business Object）：业务对象
 */
@Data
@ApiModel(value = "SeckillVo对象", description = "秒杀商品")
public class SeckillVo implements Serializable {

    @ApiModelProperty("秒杀编号")
    private Integer skId;

    @ApiModelProperty("商品编号")
    private Integer pid;

    @ApiModelProperty("商品标题")
    private String title;

    @ApiModelProperty("商品子标题")
    private String subTitle;

    @ApiModelProperty("商品价格")
    private BigDecimal price;
    @ApiModelProperty("商品活动")
    private BigDecimal promotionPrice;

    @ApiModelProperty("商品图标片")
    private String pic;

    @ApiModelProperty("商品库存")
    private String stock;

    @ApiModelProperty("秒杀活动商品的库存")
    private Integer seckillCount;

}
